This plug-in has a simple and cross platform way to execute a script when data has been received. This is done via a Dispatch Script. If you want this functionality you need to implement the Dispatch functions in
your own database. See this file how this can be done.
Dispatch Scripting by Name
This feature is new in version 2.0 of the plug-in. It works on Mac from FileMaker 4.0 (and higher) and on Windows for FileMaker 5.0 (and higher). You supply the name of the script that needs to be t
Set Port Preferences\
1999, Troi Automatisering
riggered. See the script
Set Dispatcher Script by Name
for implementation details.
Dispatch Scripting by Key
NOTE: This feature is obsolete in FileMaker 5.0. Use this only for Windows databases under 4.0
Press on the "Start receiving" script. This tells the plug-in that the Dispatch Script can be called from the keyboard with control-1
(Windows) or command-1 (Mac).
This is what happens when data arrives:
- the plug-in will bring the database file to the front and simulate a press on
the keyboard:control-1(Windows) or command-1(Mac)
- this will start the Dispatch Script, which can handle storing the data.
NOTE You can still use the Dispatch Script for other actions, so this doesn't cost a place in the script menu. That's why we call it Dispatch Scripting: when called it determines if it was called because there was data
received and if true it will dispatch the processing to another script.
Start Receiving
To Main Menu
1999 Troi Automatisering
Start Receiving
To Main Menu
ReceiverB
error codeo
To Dispatch Menup
Receive via
Dispatch Scriptingu
start receiving,
error codeo
To Dispatch Menup
Receive via Dispatch Scriptingu
start receiving
mesReceived
set preferences
AiData received from the serial
port will be put into the mesReceived with the help of the Dispatch Script.
1999 Troi Automatisering
PreferencesB
Open the serial port
NO CARRIER
To Main Menu
To Dispatch Menu
To Preferences
----- General ------
%Check for Presence of Serial plug-in
----- Dispatch Scripting
------
*Open Serial Port And Prepare for Receiving
Open Serial Port
Set Dispatcher Script
Process Data Received
, Receive Data in global gTempResultReceived
Reset Dispatcher Script
Close Serial Port
----- Misc ------
Open file
Set all globals
BeepBeep
Open Serial Port
To Dispatch Menu
speed
port name
stop bits
data bits
To Dispatch Menu
speed
port name
stop bits
data bits
parity
standard flow control
advanced flow control
")Only use advanced control if you need to.
flow control
Set Port Preferences
Start Receiving
1999 Troi Automatisering
To Main Menu
|("Serial-DataWasReceived"
Serial-DataWasReceived
----- Dispatch Scripting
------
A%Check for Presence of Serial plug-in
1)) < 4
Open the serial portB
|("Serial-Open"
] & "|" &
W & " " &
_ & " " &
` & " " &
a & " "&
Serial-Open
<> 0
= "$$-97"
$$-97
Cancelm
mPort is in useFw
Cancelm
mAn error occurred
Set all globals
|("Troi-Set Default Separator"
"|")
Troi-Set Default Separator
A Open file
) = 2
----- General ------
----- Misc ------
BeepBeep
Close Serial Port
Open the serial portB<
|("Serial-Close"
Serial-Close
To Preferences
Canceld
This file requires FileMaker 4.0 or higherE/Check if the Troi Grabber Plug-in is available.F|
|("Serial-Version"
"")
14 ) <> "Serial Plug-in"
Serial-Version
Serial Plug-in
) = 1
Canceld
The Serial Plug-in not found.
Please put The Serial Plug-in into the Extensions folder inside the FileMaker folder. Also enable all the plug-ins under the application preferences.
Canceld
The Serial Plug-in not found. Please put the this Plug-in into the SYSTEM directory inside the FileMaker directory.
Also enable all the plug-ins under the application preferences.
Canceld
The Serial Plug-in not found. Please put the this Plug-in into the SYSTEM directory inside the FileMaker directory.
Also enable all the plug-ins under the application preferences.
Helvetica
Geneva
Arial
Times New Roman
Monaco
Courier
Times
Futura
Courier New
Palatino
Minion Web
New York
AppleGaramond Bk
AppleGaramond Lt
|("Serial-SetDispatchScript"
) & "| scriptkey=1")
Serial-SetDispatchScript
| scriptkey=1
Process Data Received
|("Serial-RestoreSituation"
Serial-RestoreSituation
A, Receive Data in global gTempResultReceived
|("Serial-Receive"
Serial-Receive
2 ) = "$$"
^ = "$$-28"
$$-28
^ = "$$-28"
$$-28
Cancel
Open the port firstE-
^ = "$$-207"
$$-207
Cancel
Buffer overflow error.Gx
Cancel
An error occurred!
Reset Dispatcher Script
|("Serial-SetDispatchScript"
"")
Serial-SetDispatchScript
A*Open Serial Port And Prepare for Receiving
FMP 4 running under Windows ...D/... we need to use dispatch scripting via Key.
RAB:Troi-Grabber-Plug-in1.0a1:StudReg.fp3
Ethernet zone
McGee
peter
k{k|w
[=g\gYg\.T
g\c[_]c\ozc\g\[]g\c[o{c[g\[\g\24
Open the serial portBr
) <> 1
1)) <= 4
FMP 4 running under Windows ...D/... we need to use dispatch scripting via Key.
E=we can safely use dispatch scripting via Name of the Script.
spatch Script can be called from the keyboard with control-1
(Windows) or command-1 (Mac).
This is what happens when data arrives:
- the plug-in will bring the database file to the front and simulate a press on
the keyboard:control-1(Windows) or command-1(Mac)
- this will start the Dispatch Script, which can handle the receiving of the data.
NOTE You can still use the Dispatch Script for other actions, so this doesn't cost a place in the script menu. That's why we call it Dispatch Scripting: when called it determines if it was called because there was data
received and if true it will dispatch the processing to another script.
A4Important: ALWAYS check if the plug-in is available!B)Check if this is FileMaker 4.0 or higher.CQ
1)) < 4
To Dispatch Menu
Set Dispatcher Script by Name
Script by Name
Set Dispatcher Script by Key
(LIST
LISTA
baud=150
baud=300
baud=600
baud=1200
baud=1800
baud=2400
baud=3600
baud=4800
baud=7200
baud=9600
baud=14400
baud=19200
baud=28800
baud=38400
baud=57600
VDEFA(
(LIST
VDEFA(
(LIST
LISTA
stop=10
stop=15
stop=20
VDEFA(
(LIST
LISTA
data=5
data=6
data=7
data=8
VDEFA(
(LIST
LISTA"parity=none
parity=odd
parity=even
VDEFA(
(LIST
LISTA:flowControl=DtrDsr
flowControl=RtsCts
flowControl=XOnXOff
PRPTH
FPTHAPKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0a1:samples:StudReg.fp3
MSPCA
NAMEA
StudReg.fp3
RPTHA
:samples:StudReg.fp3
StudReg.fp3
FMP3FMP3
samples
PKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0a1:samples:StudReg.fp3
Ethernet zone
McGee
peter
NRPTH
FPTHANKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0b1:docs:Overview.fp3
MSPCA
NAMEA
Overview.fp3
RPTHA
:docs:Overview.fp3
Overview.fp3
FMP3FMP3
NKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0b1:docs:Overview.fp3
Press on the "Start receiving" script. This tells the plug-in that the Dispatch Script can be called from the keyboard with control-1
(Windows) or command-1 (Mac).
This is what happens when data arrives:
- the plug-in will bring the database file to the front and simulate a press on
the keyboard:control-1(Windows) or command-1(Mac)
- this will start the Dispatch Script, which can handle the receiving of the data.
NOTE You can still use the Dispatch Script for other actions, so this doesn't cost a place in the script menu. That's why we call it Dispatch Scripting: when called it determines if it was called because there was data
received and if true it will dispatch the processing to another script.
OYBw*
k]k]s
o|g]{
k]k]w
Nv_:5
o|g]k}
_ZkZ[ZkZ_ZkZOZkZ[ZkZ_Zw
k]k]{
g\g=5
5sF6g]F
g=g<_;w
o\o}5
k=JW1
o\g{1
g=k]5
NvkZ2
HRPTH
FPTHAHKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0a1:StudReg.fp3
MSPCA
NAMEA
StudReg.fp3
RPTHA
StudReg.fp3
StudReg.fp3
FMP3FMP3
Troi-Grabber-Plug-in1.0a1
HKES:Projecten:Troi FM Plug-In:GRAB:Troi-Grabber-Plug-in1.0a1:StudReg.fp3